package com.seocoo.worker.base.widget.adapter;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.seocoo.worker.R;
import com.seocoo.worker.base.ImageLoaderEngine;
import com.seocoo.worker.base.widget.rsp.RspImg;

/**
 * 订单详情明细适配器
 */
public class BaseImageUpLoadAdapter extends BaseQuickAdapter<RspImg, BaseViewHolder> {

    public BaseImageUpLoadAdapter() {
        super(R.layout.base_image_upload_item);
    }

    @Override
    protected void convert(BaseViewHolder helper, RspImg item) {
        ImageView view = helper.getView(R.id.iv_image);
        new ImageLoaderEngine(item.getImgUrl()).centerCrop().into(view);
    }
}
